from Base.Base import Base
from selenium.webdriver.common.by import By

class Page(Base):
    search_in = (By.ID,'query')
    def is_search_in(self):
        return self.is_displaye(self.search_in)

    def send_search(self):
        self.send_keys(self.search_in,'软件测试自动化')

    search_botton = (By.ID,'stb')
    def click_search_botton(self):
        self.click(self.search_botton)

    search_text = (By.ID,'main')
    def get_search_text(self):
        return self.get_text(self.search_text)

    tow_botton = (By.ID,'sogou_page_2')
    def click_tow(self):
        self.click(self.tow_botton)

    def get_tow_text(self):
        return self.get_text(self.search_text)


